package com.kingzoon.seckill.service;

import java.util.List;

import com.kingzoon.seckill.entity.Oauth2User;

public interface UserService {
	/**
	 * 创建用户
	 * @param user
	 */
	public Oauth2User createUser(Oauth2User user);

	public Oauth2User updateUser(Oauth2User user);

	public void deleteUser(Long userId);

	/**
	 * 修改密码
	 * @param userId
	 * @param newPassword
	 */
	public void changePassword(Long userId, String newPassword);

	Oauth2User findOne(Long userId);

	List<Oauth2User> findAll();

	/**
	 * 根据用户名查找用户
	 * @param username
	 * @return
	 */
	public Oauth2User findByUsername(String username);

}
